<template>
  <!-- 本周限免 -->
  <div class="week-limit-of-free">
    <h1>本周限免</h1>
    <ul>
      <li v-for="value of weekLimitList" :key="value.title">
        <img :src="value.imgUrl" alt="" />
        <div class="right">
          <p>{{ value.title }}</p>
          <p>{{ value.describe }}</p>
          <div class="right-bottom">
            <span>{{ value.lecturer }}</span>
            <button>立即收听</button>
          </div>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
import { reactive } from "vue";
export default {
  setup() {
    // 本周限免列表
    const weekLimitList = reactive([
      {
        imgUrl: require("@/assets/images/声音剧/syj-5@2x.png"),
        title: "  “国剧配音女一号”  季冠霖演绎千古第一才女",
        describe: "乘风破浪的李清照 | 找到当代女性的活法",
        lecturer: "主讲人：季冠霖",
      },
    ]);
    return {
      weekLimitList,
    };
  },
};
</script>

<style lang="less" scoped>
.week-limit-of-free {
  font-family: PingFang SC;
  font-weight: bold;
  h1 {
    color: #333333;
    font-size: 20px;
    margin-bottom: 14px;
  }
  ul {
    margin-bottom: 23px;
    li {
      background: #ffffff;
      box-shadow: 0px 0px 27px 0px rgba(219, 219, 219, 0.58);
      border-radius: 24px;
      width: 347px;
      padding: 11px 10px 10px 11px;
      display: flex;
      img {
        width: 90px;
        height: 120px;
        margin-right: 14px;
      }
      .right {
        position: relative;
        flex: 1;
        p {
          font-size: 16px;
          color: #000000;
          margin-bottom: 9px;
          &:last-of-type {
            color: #999999;
            font-size: 12px;
            margin: 0;
          }
        }
        .right-bottom {
          width: 100%;
          display: flex;
          justify-content: space-between;
          align-items: flex-end;
          position: absolute;
          bottom: 0;
          span {
            font-size: 12px;
            color: #d3a760;
          }
          button {
            outline: none;
            border: none;
            font-weight: bold;
            color: #333333;
            font-size: 15px;
            width: 95px;
            height: 30px;
            background: linear-gradient(270deg, #fee25e 0%, #fed414 100%);
            border-radius: 15px;
          }
        }
      }
    }
  }
}
</style>
